package com.ruoyi.degree.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 小程序用户对象 wechat_user
 * 
 * @author ruoyi
 * @date 2025-07-30
 */
public class WechatUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 用户昵称 */
    @Excel(name = "用户昵称")
    private String nickname;

    /** 用户头像 */
    @Excel(name = "用户头像")
    private String avatarUrl;

    /** 性别  0-未知、1-男性、2-女性 */
    @Excel(name = "性别  0-未知、1-男性、2-女性")
    private Long gender;

    /** 所在国家 */
    @Excel(name = "所在国家")
    private String country;

    /** 省份 */
    @Excel(name = "省份")
    private String province;

    /** 城市 */
    @Excel(name = "城市")
    private String city;

    /** 手机号码 */
    @Excel(name = "手机号码")
    private String mobile;

    /** 小程序openId */
    @Excel(name = "小程序openId")
    private String openId;

    /** 小程序unionId */
    @Excel(name = "小程序unionId")
    private String unionId;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Date createdAt;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Date updatedAt;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Date deletedAt;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String company;

    /** 个性签名 */
    @Excel(name = "个性签名")
    private String personSign;

    /** 会员状态:0 非会员,1会员 */
    @Excel(name = "会员状态:0 非会员,1会员")
    private Long memStatus;

    /** 会员认证时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "会员认证时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date memDate;

    /** 访问量 */
    @Excel(name = "访问量")
    private Long visitCount;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setNickname(String nickname) 
    {
        this.nickname = nickname;
    }

    public String getNickname() 
    {
        return nickname;
    }

    public void setAvatarUrl(String avatarUrl) 
    {
        this.avatarUrl = avatarUrl;
    }

    public String getAvatarUrl() 
    {
        return avatarUrl;
    }

    public void setGender(Long gender) 
    {
        this.gender = gender;
    }

    public Long getGender() 
    {
        return gender;
    }

    public void setCountry(String country) 
    {
        this.country = country;
    }

    public String getCountry() 
    {
        return country;
    }

    public void setProvince(String province) 
    {
        this.province = province;
    }

    public String getProvince() 
    {
        return province;
    }

    public void setCity(String city) 
    {
        this.city = city;
    }

    public String getCity() 
    {
        return city;
    }

    public void setMobile(String mobile) 
    {
        this.mobile = mobile;
    }

    public String getMobile() 
    {
        return mobile;
    }

    public void setOpenId(String openId) 
    {
        this.openId = openId;
    }

    public String getOpenId() 
    {
        return openId;
    }

    public void setUnionId(String unionId) 
    {
        this.unionId = unionId;
    }

    public String getUnionId() 
    {
        return unionId;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    public void setDeletedAt(Date deletedAt) 
    {
        this.deletedAt = deletedAt;
    }

    public Date getDeletedAt() 
    {
        return deletedAt;
    }

    public void setCompany(String company) 
    {
        this.company = company;
    }

    public String getCompany() 
    {
        return company;
    }

    public void setPersonSign(String personSign) 
    {
        this.personSign = personSign;
    }

    public String getPersonSign() 
    {
        return personSign;
    }

    public void setMemStatus(Long memStatus) 
    {
        this.memStatus = memStatus;
    }

    public Long getMemStatus() 
    {
        return memStatus;
    }

    public void setMemDate(Date memDate) 
    {
        this.memDate = memDate;
    }

    public Date getMemDate() 
    {
        return memDate;
    }

    public void setVisitCount(Long visitCount) 
    {
        this.visitCount = visitCount;
    }

    public Long getVisitCount() 
    {
        return visitCount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("nickname", getNickname())
            .append("avatarUrl", getAvatarUrl())
            .append("gender", getGender())
            .append("country", getCountry())
            .append("province", getProvince())
            .append("city", getCity())
            .append("mobile", getMobile())
            .append("openId", getOpenId())
            .append("unionId", getUnionId())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .append("deletedAt", getDeletedAt())
            .append("company", getCompany())
            .append("personSign", getPersonSign())
            .append("memStatus", getMemStatus())
            .append("memDate", getMemDate())
            .append("visitCount", getVisitCount())
            .toString();
    }
}
